package core;

import java.util.List;
import core.entities.Card;

/**
 * Class modeling the currents Cards to play
 * 
 * @author Nolan Potier
 * @version 1.0.0
 * 
 */
public class Deck extends Cards {

    /**
     * First constructor 
     * 
     */
    public Deck() {
        super();
    }

    /**
     * Second constructor
     * 
     * @param cards
     *              the targeted cards associated
     */
    public Deck(List<Card> cards) {
        super(cards);
    }
    
    /**
     * 
     * @return card
     *              the top card of the deck
     */
    public Card getTopCard() {
       Card current = getCards().get(0);
       getCards().remove(0);
       return current;
    }
}
